﻿using System;

namespace _016.异常处理
{
	internal class Program
	{
		static void Main(string[] args)
		{
			int[] myArr = { 1, 2, 3, 4 };
			try
			{
				int temp = myArr[4];
			}
			catch (IndexOutOfRangeException e)
			{
				Console.WriteLine("数组越界");
			}
			finally
			{
				Console.WriteLine("最后执行的");
			}

		}
	}
}
